package com.whisperly.echotalk.bllmodel;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;

import java.io.Serializable;

import cn.bmob.v3.BmobObject;
@Keep
public class ChatHistory extends BmobObject implements Serializable {

    private Long id;
    private String userId;
    private String message;
    private Integer state;

    public ChatHistory(String user_id, String message, Integer state) {
        this.userId = user_id;
        this.message = message;
        this.state = state;
    }

    public ChatHistory() {
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUser_id() {
        return userId;
    }

    public void setUser_id(String user_id) {
        this.userId = user_id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @NonNull
    @Override
    public String toString() {
        return "ChatHistory{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", message='" + message + '\'' +
                ", state=" + state +
                '}';
    }
}
